.class Lcom/htc/android/footprints/activity/FootprintCamera$4;
.super Ljava/lang/Object;
.source "FootprintCamera.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/htc/android/footprints/activity/FootprintCamera;->checkInBackground()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/htc/android/footprints/activity/FootprintCamera;


# direct methods
.method constructor <init>(Lcom/htc/android/footprints/activity/FootprintCamera;)V
    .locals 0
    .parameter

    .prologue
    .line 447
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$4;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    .prologue
    const-string v2, "FootprintCamera"

    .line 448
    const-string v1, "FootprintCamera"

    const-string v1, "checkInBackground, thread run"

    invoke-static {v2, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 450
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$4;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    invoke-static {v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->isOnBackground(Landroid/content/Context;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 451
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$4;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v1, :cond_0

    .line 453
    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintCamera$4;->this$0:Lcom/htc/android/footprints/activity/FootprintCamera;

    iget-object v1, v1, Lcom/htc/android/footprints/activity/FootprintCamera;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V

    .line 454
    const-string v1, "FootprintCamera"

    const-string v2, "InBackground, stop service"

    invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 460
    :cond_0
    :goto_0
    return-void

    .line 455
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 456
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method
